package ro.myApp.articles.entities;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import ro.myApp.commons.basic.PersistentEntity;

@Entity
@Table(name = "CUSTOM_COMMENT")
public class Comment extends PersistentEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = -6007188000768140410L;

	@ManyToOne(fetch=FetchType.LAZY)
	private Publication publication;
	
	public Publication getPublication() {
		return publication;
	}
	public void setPublication(Publication publication) {
		this.publication = publication;
	}
}
